/*
 * @FilePath: /cpp_study/ch05/compstr2.cpp
 * @Description: 
 * @Author: dengrunting
 * @Date: 2022-01-10 15:06:53
 * @LastEditTime: 2022-01-10 15:07:53
 */
#include<iostream>
#include<string>
int main(){
    using namespace std;
    string word = "?ate";
    for (char ch = 'a'; word != "mate"; ch ++){
        cout << word << endl;
        word[0] = ch;
    }
    cout << "After loop ends, word is " << word << endl;
    return 0;
}